package com.jac.alapores.dao;

import java.util.List;

import com.jac.alapores.domain.AlaporesCategory;

public class CategoryRepository
extends BaseRepository
{
	public List<AlaporesCategory> getAll()
	{
		return getService().query(AlaporesCategory.class).list();
	}
	
	public void create(AlaporesCategory category)
	{
		getService().put(category);		
	}
	
	public void deleteById(Long pId)
	{
		getService().delete(AlaporesCategory.class, pId);
	}
	
	public AlaporesCategory getById(Long pId)
	{
		return getService().get(AlaporesCategory.class, pId);
	}
}
